package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lrkj.back.mapper.ZsShenqingYicipinMingxiMapper;
import com.lrkj.back.entity.ZsShenqingYicipinMingxi;
import com.lrkj.back.service.ZsShenqingYicipinMingxiService;
import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service
public class ZsShenqingYicipinMingxiServiceImpl extends ParentServiceImpl<ZsShenqingYicipinMingxi> implements
        ZsShenqingYicipinMingxiService {

    @Autowired
    private ZsShenqingYicipinMingxiMapper mingxiMapper;

    @Override
    protected DBInterface<ZsShenqingYicipinMingxi> getDao() throws DBException {
        return mingxiMapper;
    }

    @Override
    public List<ZsShenqingYicipinMingxi> findAllYicipinApplyDetail(Map<String, Object> map) throws DBException {
        return mingxiMapper.findAllYicipinApplyDetail(map);
    }

    @Override
    public int updateByBatch(List<ZsShenqingYicipinMingxi> liushuiList) throws DBException {
        return mingxiMapper.updateByBatch(liushuiList);
    }

}
